<%@ page import="org.springside.core.Constants"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<fmt:message var="portlet_17" key="portlet_17"/>
<ff:boxportlet header="${portlet_17}">
    	  <c:if test="${param.y==10}">
	         <c:set var="length" value="4"></c:set>
	      </c:if>
	      
	       <c:if test="${param.y != 10}">
	         <c:set var="length" value="${param.y}"></c:set>
	       </c:if>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding-left:5px">
	<tr>
		<td valign="top">    	       
 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="tbl_left_ico">
        <c:forEach items="${tasks}" var="task" > 
        <tr>
                <td>
		        	
		        	<A title="${task.content}" href ="#" onClick='mainJump("/modules/task/task.do?method=edit&type=mytask&id=${task.id}","<%=Constants.USER_THEME_FRAME %>")'>	
		        	 	<c:if test="${fn:length(task.content)> length}">
		                	${fn:substring(task.content,0,length)}...
		                </c:if>
		                <c:if test="${fn:length(task.content)<= length}">
		                	${task.content}
		                </c:if> 
		        	</A>
		        	(<font color="#999999"><fmt:formatDate value="${task.createDate}" pattern="MM-dd HH:mm"/></font>)
                </td>
              </tr>
            </c:forEach>
            <c:if test="${fn:length(tasks) < 1}"> <tr><td>&nbsp;</td></tr></c:if>
            <c:if test="${fn:length(tasks) < 2}"> <tr><td>&nbsp;</td></tr></c:if>
            <c:if test="${fn:length(tasks) < 3}"> <tr><td>&nbsp;</td></tr></c:if>
            <c:if test="${fn:length(tasks) < 4}"> <tr><td>&nbsp;</td></tr></c:if>
            <c:if test="${fn:length(tasks) < 5}"> <tr><td>&nbsp;</td></tr></c:if>
            
            </table> 

	<table width="100%" height="17">
        <tr>
          <td>&nbsp;</td>
          <td width="30" class="tbl_more_ico_td">
          <a href="#" class="link_portlet" onClick='mainJump("/modules/task/task.do?method=list&type=mytask","<%=Constants.USER_THEME_FRAME %>")'
         	title="<fmt:message key="common_more" />"><fmt:message key="common_more" /></a></td>
        </tr>
     </table>
	</td>
    </tr>
 </table>
</ff:boxportlet>

